function sys_get_type() {
	let storage = window.localStorage;
	var sUserAgent = navigator.userAgent.toLowerCase();
	if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent)) {
		storage.system = "mobile";
	} else {
		storage.system = "pc";
	}
	console.log("sys_get_type:" + storage.system);
	return storage.system;
}
function set_url(url, id, token) {
	let storage = window.localStorage;
	//var url = "../account/account.html";
	top.window.location.href = url + '?id=' + storage.id + "token=" + storage.token;
}
var post_table_del = function(name, id){
	console.log("name:" + name + "  id:" + id);
	var xhttp = new XMLHttpRequest();
	var array = [], a0 = [], obj = {};
	var table, tmp;
	let storage = window.localStorage;
	xhttp.open("post", "driver" , false);
	table = document.getElementById(table_name);
	array[0] = id;
	a0[0] = array;
	obj.data = a0;
	obj.id = storage.id;
	obj.operate = "del";
	obj.token = storage.token;
	console.log("obj:" + JSON.stringify(obj));
	xhttp.send(JSON.stringify(obj));
	location.reload();
}
